package com.gouying.design.patterns.singleton;

/**
 * 懒加载单例模式
 */
public class LazySinglton {

    private static LazySinglton instance;
    private LazySinglton() {

    }
    public static LazySinglton getInstance() {
        if(instance == null) {
            instance = new LazySinglton();
        }
        return instance;
    }
}
